#coding=utf-8
__author__ = 'rsg'


class Data(dict):
    ''' doc string '''
    def __init__(self, **kwargs):
        super(Data, self).__init__(**kwargs)
        self.__dict__ = self


class JsonSeccessResult(dict):
    def __init__(self, Response = None):
        super(JsonSeccessResult, self).__init__(Code=0, Response=Response)

j1 = JsonSeccessResult(Response='成功')
j2 = JsonSeccessResult(Response='失败')

print j1['Response']
print j2['Response']

d = Data(name="xi")

print d['name']

